import java.text.{DecimalFormat, SimpleDateFormat}

import org.apache.avro.LogicalTypes.Decimal

/**
 * Author atguigu
 * Date 2020/11/2 15:47
 */
object B {
    def main(args: Array[String]): Unit = {
       val formatter =  new DecimalFormat("0000.00")
        println(formatter.format(1.34568))  // 0001.35
        println(formatter.format(12.34568)) // 0012.35
        println(formatter.format(1234.34568))
    }
}
